package com.wn.service.impl;

import com.wn.dao.MenuDao;
import com.wn.entity.Menu;
import com.wn.entity.ResponseEntity;
import com.wn.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl implements MenuService {
    @Autowired
    MenuDao menuDao;
    @Override
    public ResponseEntity findAll() {
        List<Menu> all=menuDao.findAll();
        return new ResponseEntity(200,"查询成功",all);
    }
}
